<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- Bootstrap -->
	<link href="../css/bootstrap.min.css" rel="stylesheet">
	<script src="../js/jquery.min.js"></script>
	<script src="../js/bootstrap.min.js"></script>
	<title>登录</title>
</head>
<style type="text/css">
	#main{
		position: absolute;
		width: 400px;
		height: 300px;
		left:50%;
		top:40%;
		margin-left: -200px;
		margin-top: -100px;
	}
</style>
<body>
<script type="text/javascript">
	$(document).ready(function(){
		$("#eye").click(function(){
			if($("#password").attr("type")=="password"){
				$("#password").attr("type","text");
				$("#eye").attr("class","glyphicon glyphicon-eye-close");
			}else{
				$("#password").attr("type","password");
				$("#eye").attr("class","glyphicon glyphicon-eye-open");
			}
		});
	});
</script>
<div id="main" class="panel panel-primary">
	<div class="panel-heading">
		<div class="panel-title">
			后台登录
		</div>
	</div>
	<div class="panel-body">
		<div style="text-align: center;">
			<img src="../image/mistore_logo.png" alt="logo" width="30%" height="30%" />
		</div>
		<form action="${pageContext.request.contextPath }/userservlet?method=adminLogin" method="post">
			<div class="form-group">
				<label for="username">用户名:</label>
				<input type="text" name="username" id="username" class="form-control" placeholder="请输入用户名"/>
			</div>
			<div class="form-group">
				<label for="password">密码:</label>
				<div class="input-group">
					<input type="password" name="password" id="password" class="form-control" placeholder="请输入密码"/>
					<span class="input-group-addon">
                        <span class="glyphicon glyphicon-eye-open" id="eye"></span>
                    </span>
				</div>
			</div>
			<div class="form-group" style="text-align: center;">
				<input type="submit" value="登录" class="btn btn-primary">
				<input type="reset" value="重置" class="btn btn-default">
			</div>
		</form>
	</div>
</div>
</body>
</html>
